<include file="public:header" />
<include file="public:left" />
<include file="public:article_left" />
<div >
    <a href="{:U('Article/addShow')}?column_id={$column_id}" class="btn btn-primary" >添加文章</a>
</div >
<br>
<table id="sample-table-1" class="table table-striped table-bordered table-hover wrfont14">
    <thead>
    <tr>
        <th>序号</th>
        <th>标题</th>
        <th>创建时间</th>
        <!--  <th>图片</th>
      <th >链接</th>
        <th >图片alt</th>
        <th>状态</th>   -->
        <th width="300px">操作</th>
    </tr>
    </thead>
    <tbody>
    <volist name="list" id="val" >
        <tr>
            <td>{$val.id}</td>
            <td>{$val.name}</td>
            <td>{$val.create_time}</td>
                       <!--
            <td width="40%">{$val.url}</td>
            <td>{$val.alt}</td>  -->
            <!--  <td style="vertical-align:middle"  width="112px">

                 <if condition="$val['status'] eq 1 ">
                     <span class="label label-sm label-success">开启</span>
                     <else/>
                     <span class="label label-sm label-danger">关闭</span>
                 </if>



                <if condition="$val['recommend'] eq 1 ">
                    <span class="label label-sm label-success">已推荐</span>
                </if>

            </td>  -->
            <td style="vertical-align:middle">
               <!-- <a href="{:U('Article/recommend')}?id={$val.id}" class="label label-sm label-primary">新品推荐</a>

                <if condition="$val['status'] eq 1 ">
                    <a href="{:U('Article/status')}?id={$val.id}" class="label label-sm label-danger">关闭</a>
                    <else/>
                    <a href="{:U('Article/status')}?id={$val.id}" class="label label-sm label-success">开启</a>
                </if>

                -->
                <a href="{:U('Article/editorShow')}?id={$val.id}" class="label label-sm label-warning">编辑</a>
                <a href="{:U('Article/del')}?id={$val.id}" class="label label-sm label-danger">删除</a>
            </td>
        </tr>
    </volist>
    </tbody>
</table>
</div>
<div class="tk_content_page" style="width:100%">{$page}</div>
<include file="public:footer" />
